Release 10.1A: OpenEdge Development:
Programming Interfaces
Printing reports and the STREAM-IO option
For toggle boxes, radio sets, sliders, combo boxes, and selection lists, trying to output the widget to any other device besides the screen yields nothing. Neither the widget nor the value it contains appears in files or printed reports.
Rather than tack a
VIEW-AS TEXTphrase onto every widget, you can use theSTREAM-IOoption of the frame phrase to reduce every widget to textual data. Here is an example:
You must use the
STREAM-IOoption on every output frame intended for a destination other than the screen.Although primarily a tool for sending data to files and reports, the
STREAM-IOoption also reduces all widgets to textual data for screen output.
![]()
To see the effects of the
STREAM-IOoption on screen data:
- Open
i-10-03.pand run it. This report is the same as the one from the last exercise, but without the special interface.- Press END-ERROR and then SPACEBAR to return to the Procedure Editor.
- Remove
STREAM-IOfrom the frame phrase and run the procedure again.Note that the
Bal-Duevariable displays as a disabled toggle box in the iterations.- Press END-ERROR and then SPACEBAR to return to the Procedure Editor.
If you scroll through the text of the procedure, you can see that the
STREAM-IOoption on the frame phrase of the iterating block is the only change.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |